06d5e5a7ad8de49d5b0b40f319952763d7e636d6,mycollab-web/src/main/java/com/mycollab/module/crm/view/CrmModule.java,CrmModule,buildMenu,#,68

Before Change


                        }
                    });

            serviceMenu.addService(CrmTypeConstants.CONTACT, AppContext.getMessage(ContactI18nEnum.LIST),
                    new Button.ClickListener() {
                        @Override
                        public void buttonClick(Button.ClickEvent clickEvent) {
                            EventBusFactory.getInstance().post(new ContactEvent.GotoList(this, null));
                        }
                    });

            serviceMenu.addService(CrmTypeConstants.LEAD, AppContext.getMessage(LeadI18nEnum.LIST),
                    new Button.ClickListener() {

After Change


            serviceMenu.addService(CrmTypeConstants.ACCOUNT, AppContext.getMessage(AccountI18nEnum.LIST),
                    clickEvent -> EventBusFactory.getInstance().post(new AccountEvent.GotoList(this, null)));

            serviceMenu.addService(CrmTypeConstants.CONTACT, AppContext.getMessage(ContactI18nEnum.LIST),
                    clickEvent -> EventBusFactory.getInstance().post(new ContactEvent.GotoList(this, null)));

            serviceMenu.addService(CrmTypeConstants.LEAD, AppContext.getMessage(LeadI18nEnum.LIST),
                    clickEvent -> EventBusFactory.getInstance().post(new LeadEvent.GotoList(this, null)));